﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Register.Model;
using Register.IDAL;
using Register.DALFactory;

namespace Register.BLL
{
  public  class RoleModelInfoBLL
    {
        private static String typeNameKey = "IRoleModelInfoDALKey";
        public static int Add(RoleModel model)
        {
            IRoleModelInfoDAL IRoleModel = DALFactory<IRoleModelInfoDAL>.Create(typeNameKey);
            return IRoleModel.Add(model);
        }
        public static bool Delete(string Role_ID, string ModuleInfo_ID)
        {  
            IRoleModelInfoDAL IRoleModel = DALFactory<IRoleModelInfoDAL>.Create(typeNameKey);
           return  IRoleModel.Delete(Role_ID, ModuleInfo_ID);
        }
        public static List<RoleModel> GetList(string strWhere)
        {
            IRoleModelInfoDAL IRoleModel = DALFactory<IRoleModelInfoDAL>.Create(typeNameKey);
            return IRoleModel.GetList(strWhere);
        }
    }
}
